﻿// ===============================================================================
// DotNet.Platform 开发框架 2016 版权所有
// ===============================================================================

using System;
using DotNet.Entity;

namespace DotNet.JCore.Entity
{
    /// <summary>
    /// 登录日志
    /// </summary>
    [Table("登录日志")]    
    public class AccountLog
    {
		/// <summary>
        /// 主键
        /// </summary>
        [PrimaryKey]
        [Column("主键",false)]
        public string Id { get; set; }

		/// <summary>
        /// 姓名
        /// </summary>
		[Column("姓名")]
        public string Name { get; set; }

		/// <summary>
        /// 手机
        /// </summary>
		[Column("手机")]
        public string Phone { get; set; }

		/// <summary>
        /// 部门
        /// </summary>
		[Column("部门")]
        public string Dept { get; set; }

		/// <summary>
        /// 稽查点主键
        /// </summary>
		[Column("稽查点主键")]
        public string PointId { get; set; }

        /// <summary>
        /// 稽查点名称
        /// </summary>
        [Column("稽查点名称")]
        public string PointName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("创建时间")]
        public DateTime CreateTime { get; set; }

		/// <summary>
        /// 操作类型(0登录1退出)
        /// </summary>
		[Column("操作类型(0登录1退出)")]
        public int OpType { get; set; }

        /// <summary>
        /// 有效状态 0无效 1有效
        /// </summary>
        [Ignore]
        [Column("操作类型")]
        public string OpTypeText
        {
            get { return OpType==0 ? "登录" : "退出"; }
        }

        /// <summary>
        /// 复制对象
        /// </summary>
        public AccountLog Clone()
        {
            return (AccountLog)MemberwiseClone();
        }
    }
}
